cmake_minimum_required(VERSION 3.8)
project(basic_syntax)
file(LOCK "${PROJECT_SOURCE_DIR}/file_to_lock" RESULT_VARIABLE result)
MESSAGE(STATUS "result = ${result}")
message(STATUS "result = ${RESULT}")

set(var1 aaa)
message(STATUS "var1 = ${var1}")

set(var2 STATUS a b c)
message(${var2})
message("${var2}")

message(STATUS "system path = $ENV{PATH}")
